package tpf.designer.pattern.course8.behavior_pattern3.interpreter_25.example2;

import org.apache.log4j.Logger;
import org.junit.Test;

public class Client {
    public static final Logger LOGGER = Logger.getLogger(Client.class);

    @Test
    public void testExample2(){
        String statement = "3 * 2 * 4 / 6 % 5";

        Calculator calculator = new Calculator();

        calculator.build(statement);

        int result = calculator.compute();

        System.out.println(statement + " = " + result);
    }
}
